<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Expires" content="0" />

    <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8">

    <title>统信❤Godot精选名单</title>
    <link rel="shortcut icon" href="../res/Godot.svg">
    <script src="../app/showdown.min.js"></script>
    <script src="../app/showdown-table.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../app/github-markdown-light.css">
</head>

<body>

    <style>
        #editor {
            display: flex;
            min-height: 500px;
            width: 100%;
        }

        #view-area {
            width: 100%;
            /* border: 1px solid #4073df; */
        }

        .markdown-body {
            box-sizing: border-box;
            min-width: 400px;
            max-width: 1080px;
            margin: auto auto;
            padding: 45px;
        }

        @media (max-width: 767px) {
            .markdown-body {
                padding: 15px;
            }
        }
    </style>

    <div id="editor">
        <article id="view-area" class="markdown-body">
        </article>
    </div>


    <script>
        var httpRequest = new XMLHttpRequest();
        httpRequest.open('GET', 'https://godothub.atomgit.net/festival2023/star/star.md', true);
        httpRequest.send();
        httpRequest.onreadystatechange = function () {
            var converter = new showdown.Converter({ extensions: ['table'] });
            var view = converter.makeHtml(httpRequest.responseText);
            document.getElementById("view-area").innerHTML = view;
        };
    </script>
</body>

</html>